package com.harmontronics.hanma.paas.paas.dto.input;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 数据源
 *
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-05-12 11:12:31
 */
@Data
public class HmDatasourceUpdateInput {


    /**
     * $column.comments
     */
    @ApiModelProperty(value = "$column.comments")
    private Long id;
    /**
     * 数据源名称
     */
    @ApiModelProperty(value = "数据源名称")
    private String name;

    /**
     * 数据源描述
     */
    @ApiModelProperty(value = "数据源描述")
    private String remark;

    @ApiModelProperty("环境配置")
    @NotNull(message = "hm.pass.field_non_nullable")
    @Valid
    private List<HmDatasourceEnvCreateInput> envList;

}
